import axios from 'axios'
import { ref } from 'vue'

export default {
  setup() {
    const mockData = ref(null)
    axios.get('/src/mock/test.json').then(res => {
      mockData.value = res.data
    })
    return { mockData }
  },
  template: /*html*/`<div class="about">
    <h1>About</h1>
    <pre>
    {{ mockData }}
    </pre>
  </div>`
}